import Vue from 'vue'
import VeeValidata from 'vee-validate'
import zh_CN from 'vee-validate/dist/locale/zh_CN'

const config = {
  fieldsBagName: 'vee-fields'
}

Vue.use(VeeValidata,config)

VeeValidata.Validator.localize('zh_CN', {
    messages: {
      ...zh_CN.messages
    },
    attributes: { // 给校验的 field 属性名映射中文名称
        id: '账号',
        password: '密码'
    }
})  